package com.molin.exceptionTest;

import org.w3c.dom.ls.LSOutput;

public class Demo7 {

    public static void main(String[] args) {
        try {
            int arr[] = {1, 2, 3, 4, 5};
            System.out.println(arr[10]);
        } catch (ArrayIndexOutOfBoundsException e) {
//            e.printStackTrace();
//            System.out.println(e.toString());
//            e.printStackTrace();
        }
        //new ArrayIndexOutOfBoundsException()
        System.out.println("嘿嘿");
    }
}
